{# extends "authopenid/base.html" #}
{% extends 'common/panel.html' %}
{% load appname %}
{% block title %}Sign In{% endblock title %}

{% block panel %}
{% if msg %}
<br />
	<p class="warning">{{ msg }}</p>
{% endif %}
{% if form2.errors %}
<div class="errors"><p>Please correct errors below:<br />
    {% if form2.non_field_errors %}
        <span class="error">{{ form2.non_field_errors }}</span>
        <br/>
    {% endif %}
	{% if form2.username.errors %} 
		<span class="error">USERNAME errors {{ form2.username.errors|join:", " }}</span>
        <br/>
	{% endif %}
	{% if form2.password.errors %} 
		<span class="error">PASSWORD errors {{ form2.password.errors|join:", " }}</span>
        <br/>
	{% endif %}
</p></div>

{% endif %}

{% if form1.errors %}
<div class="errors">
    <p><span class="error">{{ form1.openid_url.errors|join:", " }}</span></p>
</div>
<br>
{% endif %}

<div class="box" style="margin-top:25px">

<form id="auth_form" name="auth_form" action="{% url user_signin %}" method="post">
    <input type="hidden" name="next" value="{{ next }}" />
        <h2>Sign In To {% appname %}</h2> 
		<div class="form-row" style="margin-top:15px;"><label for="id_username">Username</label>{{ form2.username }}</div>
		<div class="form-row" style="margin-top:10px;"><label for="id_password">Password</label>{{ form2.password }}</div>
        <div class="submit-row" style="margin-top:10px;"><input type="submit" name="blogin" value="Sign in"> </div>
</form>

<p><a class="panel_link" href="{% url auth_password_reset %}">Forgot your password?</a></p>
</div>	
{% endblock panel %}



